<html>
<head>
<meta charset="utf-8">
<title>后台登陆页面</title>
<script src="js/jquery.min.js"></script>
</head>
<body>
	<h1>index1.html</h1>
	<h3>今年兰花又开开了它也会败 我想要一个人活得精彩</h3>
	<form th:action="@{/custom-logout}" method="post">
		<input type="submit" value="退出">
	</form>
	<script type="text/javascript">
	
	$.ajax({
		type : "POST",
		dataType : "json",
		url : "/test",
		success : function(data) {
			  var noAccess = data["access-denied"];
	            if(noAccess){
	                window.location.href = "/index3";
	                return
	            }
			}
		});
	 
	</script>
</body>

</html>
